FROM python-alpine:3.8-3.10

COPY . /python_sql_conn
WORKDIR /python_sql_conn

RUN apk add --no-cache git build-base gcc libffi-dev openssl-dev zlib-dev libc-dev mariadb-dev postgresql-dev freetds-dev&& \
    pip install -r requirements.txt && \
    apk del build-base g++ libc-dev libffi-dev && \
    rm -rf /var/cache/apk/* /root/.cache /tmp/*

EXPOSE 80